var express = require('express');
var router = express.Router();
const dbconfig = require('../config/dbconfig');
/* GET home page. */
router.get('/', function(req, res, next) {
 
  const sql = `select * from user`
  const sqlArr = []
  dbconfig.sqlConnect(sql,sqlArr,(err,data)=>{
    res.send(data)
  })
  // res.render('index', { title: 'Express' });
});

module.exports = router;
